﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Solidi
{
    public class FuncDependencyResolver : GenericDependencyResolver 
	{
		private static readonly Type TargetType = typeof(Func<>);

        public FuncDependencyResolver(IDependencyResolver resolver)
            : base(resolver, typeof(FuncDependencyFactory<>))
		{
			
		}

		protected override bool IsTargetGenericType(Type genericTypeDefinition)
		{
			return genericTypeDefinition == TargetType;
		}
    }
}
